package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.Employee;
import com.ruoyi.business.domain.model.AccommodationStats;
import com.ruoyi.business.domain.model.EmployeeClassification;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface EmployeePlusMapper extends BaseMapper<Employee> {
    /**
     * 获取员工人数，分本厂职工和外场职工
     * * * */
    List<EmployeeClassification> getEmployeeClassification();

    /**
     * 统计申请住房人数，已分配人数，未分配人数
     * * * */
    AccommodationStats getAccommodationStats();
    /**
     * 查询合同快要到期的员工数据
     */
    List<Employee> ContractExpirationReminder(Employee query);

    void updateAge();

    /**
     * 退休年龄提醒，男60周岁，女50周岁提醒。
     */
    List<Employee> retirementReminder(Employee query);

}
